﻿<%@ Control Language="C#" Inherits="LTJ.Web.UI.datacontrol.ajaxuserauthlist" %>
<table border="0" cellpadding="0" cellspacing="0" class="edtb">
    <tbody>
        <%
            int allcount = 0;
            foreach (System.Data.DataRow dr in maindt.Rows)
            {
                int subcount = 0;
                foreach (System.Data.DataRow subdr in subdt.Select("parentid=" + dr["menuid"]))
                {
        %>
        <tr>
            <%if (subcount == 0)
              {%><td rowspan="<%=subdt.Select("parentid="+dr["menuid"]).Length%>"
                class="co2">
                <%=dr["menutitle"]%>
            </td>
            <%}%>
            <td <%if(subcount%2==0){%>class="co3" <%}%>>
                <p class="zi2">
                    <input onclick="CheckSpecial(this.form,this,'auth_<%=allcount%>')" name="auth_main_<%=allcount%>" type="checkbox" value="<%=subdr["menulink"]%>" <%=GetChecked(1,subdr["menulink"].ToString(),subdr)%>/>
                    <%=subdr["menutitle"]%>
                    （<%=LTJ.Entity.EnumType.GetOpModeName(LTJ.Common.Utils.StrToInt(subdr["frameid"],0))%>）
                    <input type="checkbox" name="auth_<%=allcount%>" value="Create" <%=GetChecked(2,"Create",subdr)%>/>增加
                    <input type="checkbox" name="auth_<%=allcount%>" value="Update" <%=GetChecked(2,"Update",subdr)%>/>修改
                    <input type="checkbox" name="auth_<%=allcount%>" value="Delete" <%=GetChecked(2,"Delete",subdr)%>/>删除
                    <input type="checkbox" name="auth_<%=allcount%>" value="Read" <%=GetChecked(2,"Read",subdr)%>/>查阅
                </p>
            </td>
        </tr>
        <%
            subcount++;
            allcount++;
                }
            }
        %>
    </tbody>
</table>